export function confirmOrder(data) {
  return uni.$tn.http.get('/order/confirmOrder', {params:data})
}

export function subOrder(data) {
  return uni.$tn.http.post('/order/subOrder',data)
}

export function mentorOrder(data) {
  return uni.$tn.http.post('/order/mentorOrder',data)
}

export function confirmOrderCoupon(data) {
  return uni.$tn.http.get('/order/confirmOrderCoupon', {params:data})
}

export function prePay(data) {
  return uni.$tn.http.get('/order/prePay', {params:data})
}

export function cancelOrder(data) {
  return uni.$tn.http.get('/order/cancelOrder', {params:data})
}

export function confirmOrderStatus(data) {
  return uni.$tn.http.get('/order/confirmOrderStatus', {params:data})
}

export function accountPay(data) {
  return uni.$tn.http.post('/pay/accountPay', data)
}

export function rechargePay(data) {
  return uni.$tn.http.post('/pay/rechargePay', data)
}
export function preReturn(data) {
  return uni.$tn.http.get('/order/preReturn', {params:data})
}
export function subReturn(data) {
  return uni.$tn.http.get('/order/subReturn', {params:data})
}

export function canUsedCoupon(data) {
  return uni.$tn.http.get('/coupon/canUsedCoupon', {params:data})
}

